package d1130.r211.num03;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.ArrayList;
import java.util.List;

public class StuApp {
    static List<Student> list=new ArrayList<>();
    public static void main(String[] args) {
        init();
        double ret=Tools.getAvg(list);
        System.out.println("平均分是"+ret);
        //不及格的学生
        List<Student> stus=Tools.getScore(list);
        System.out.println(stus);
    }



    //数据初始化
    public static void init(){
        list.add(new Student("zhangsan","6081",98));
        list.add(new Student("lisi","6084",85));
        list.add(new Student("liubei","6081",56));
        list.add(new Student("goutou","6022",88));
        list.add(new Student("maotou","6010",78));
        list.add(new Student("xixi","6006",45));

    }
}
